//
//  ZLNetWorkManger+Extension.swift
//  微博
//
//  Created by 朱万龙 on 2016/12/19.
//  Copyright © 2016年 zwl. All rights reserved.
//

import Foundation


// MARK: - 封装项目网络请求方法
extension ZLNetWorkManger{
    
    
    func statusList(complesion:@escaping (_ list:[[String:AnyObject]],_ isSuccess:Bool)->()){
        let urlString = "https://api.weibo.com/2/statuses/home_timeline.json"
        let pamart = ["access_token":"2.00MqFJIG0JUY1e17b9fe10aa_79HwD"]
        
        request(URLString: urlString, parameter: pamart as [String : AnyObject]) { (json, isSuccess) in
            let result = json?["statuses"] as? [[String:AnyObject]]
            
            complesion(result!, isSuccess)
        }
    }
}

